<?php

namespace app\controllers;

use Yii;
use yii\web\Controller;
use yii\web\Request;
use yii\web\Response;
use proxy\HttpProxy;
use helper\SessionHelper;

class LogoutController extends BaseController
{
    public function actionIndex()
    {
        $request = Yii::$app->request;
        //$this->session->set('admin_user_id',null);
        $this->session->destroy();
        //header('Location:'.Yii::$app->params['HOST'].'/login');
        return $this->myRedirect('/login');
    }
    

}
